<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>天猫小店</title>
    <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="./libs/bootstrap/js/jquery-3.4.1.min.js"></script>
    <script src="./libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="./js/utils.js"></script>
</head>
<body> 
    <!-- 导航条 -->
    <nav class="navbar navbar-default navbar-inverse ">
        <div class="container">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <a class="navbar-brand" href="#">天猫小店商品管理系统</a>
          </div>
      
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
              <li class="active"><a href="#">首页</a></li>
              <li><a href="#">生活用品</a></li>
              <li><a href="#">智能电器</a></li>
              <li><a href="#">数码科技</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
              <li><a href="#">登入</a></li>
              <li><a href="#">注册</a></li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
      </nav>
      <div class="container">

      <!-- 表格 -->
      <table class="table table-hover table-bordered table-striped setbutton set-list">
            <thead>
                <tr>
                    <th>序列</th>
                    <th>商品</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="tbody">
<!--                 <tr style="height: 46.4px;">
                    <td>1</td>
                    <td>
                      <span>1</span>
                      <input type="text" autofocus>
                    </td>
                    <td>
                      <span>1</span>
                      <input type="number">
                    </td>
                    <td>
                      <span>1</span>
                      <input type="number">
                    </td>
                    <td>
                      <button type="button" class="btn btn-primary btn-sm">编辑</button>
                      <button type="button" class="btn btn-danger btn-sm">删除</button>
                      <button type="button" class="btn btn-success btn-sm">确认</button>
                      <button type="button" class="btn btn-info btn-sm">取消</button>
                    </td>
                </tr> -->
                
            </tbody>
      </table>

      <button type="button" class="btn btn-primary btn-add" data-toggle="modal" data-target="#myModal">
        商品上架
      </button>
    </div>
    

    <!-- 模态框 -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">新增商品</h4>
          </div>
          <div class="modal-body form-horizontal">
            <div class="form-group">
              <label for="inputName" class="col-sm-2 control-label">名称</label>
              <div class="col-sm-10">
                <input type="text" class="form-control" id="inputName" placeholder="请输入要上架的商品">
              </div>
            </div>
            <div class="form-group">
              <label for="inputPrice" class="col-sm-2 control-label">单价</label>
              <div class="col-sm-10">
                <input type="number" class="form-control" id="inputPrice" placeholder="请输入商品价格">
              </div>
            </div>
            <div class="form-group">
              <label for="inputNum" class="col-sm-2 control-label">数量</label>
              <div class="col-sm-10">
                <input type="number" class="form-control" id="inputNum" placeholder="请输入商品数量">
              </div>
            </div>
    
          </div>
          <div class="modal-footer">
            <span id="msg" class="text-primary " style="display: none;float: left;">添加成功，耶嚯~</span>
            <button type="button" class="btn btn-default" data-dismiss="modal" id="remove">关闭</button>
            <button type="button" class="btn btn-primary" id="add">添加</button>
          </div>
        </div>
      </div>
    </div>
    <script src="./js/select.js"></script>
    <script src="./js/edit.js"></script>
    <script src="./js/add.js"></script>

</body>
</html>